package com.palominocia.capa_datos_nodo.modelo.seguridad;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

import javax.validation.constraints.NotNull;
import javax.persistence.CascadeType;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Oauth {

    /**
     */
    @NotNull
    private String servicio;

    /**
     */
    @NotNull
    private String description;

    /**
     */
    @NotNull
    private String client_type;

    /**
     */
    @NotNull
    private String alcance;

    /**
     */
    @NotNull
    private String token;

    /**
     */
    @NotNull
    private String secret;

    /**
     */
    @NotNull
    private String updated_at;

    /**
     */
    @ManyToOne(cascade = CascadeType.ALL)
    private Usuario usuarios;
}
